﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Noebe.Orm
{
    /// <summary>
    /// 数据库的映射名
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
    public class OrmAliasAttribute : Attribute
    {
        string alias = null;

        public OrmAliasAttribute(string alias)
        {
            this.alias = alias;
        }

        public string Alias
        {
            get { return alias; }
            set { alias = value; }
        }

    }
}
